#include <iostream>
using namespace std;

class Bug {
	private:
		int nLegs;
		int nColor;
	public:
		int nType;
		Bug(int legs, int color);
		void PrintBug() {};
};

class FlyBug: public Bug {
		int nWings;
	public:
		FlyBug(int legs, int color, int wings);
};

Bug::Bug(int legs, int color) {
	nLegs = legs;
	nColor = color;
}

FlyBug::FlyBug(int legs, int color, int wings): Bug(legs, color) {
	nWings = wings;
}

int main() {
	FlyBug fb(2, 3, 4);
	fb.PrintBug();
	fb.nType = 1;
	return 0;
}